package com.flower.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.flower.common.annotation.Excel;
import com.flower.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 花卉百科对象 biz_wiki
 * 
 * @author ruoyi
 * @date 2024-04-03
 */
public class BizWiki extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 花卉名称 */
    @Excel(name = "花卉名称")
    private String name;

    /** 花卉图片地址 */
    @Excel(name = "花卉图片地址")
    private String imageUrl;

    /** 花卉百科地址 */
    @Excel(name = "花卉百科地址")
    private String baikeUrl;


    /** 花卉详细介绍 */
    @Excel(name = "花卉详细介绍")
    private String description;

    //creteTime
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creteTime;

    public Date getCreteTime() {
        return creteTime;
    }

    public void setCreteTime(Date creteTime) {
        this.creteTime = creteTime;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setBaikeUrl(String baikeUrl) 
    {
        this.baikeUrl = baikeUrl;
    }

    public String getBaikeUrl() 
    {
        return baikeUrl;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("imageUrl", getImageUrl())
            .append("baikeUrl", getBaikeUrl())
                //getCreateTime
                .append("creteTime", getCreteTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("description", getDescription())
            .append("remark", getRemark())
            .toString();
    }
}
